package com.dmap.run.bo;

import com.dmap.run.po.RunRecord;

import java.io.Serializable;

/**
 * \* User: silent
 * \* Date: 17/05/18 Time: 16:44
 * \* Description: 简单版跑步信息
 * \
 */
public class RunRecordSimple implements Serializable {
    private static final long serialVersionUID = 6282097252923018584L;
    private Long startTime;           //开始时间
    private Integer distance;         //全程距离
    private Integer calorie;          //消耗卡路里
    private Integer speedAverage;     //平均配速
    private Integer timeTotal;        //消耗时间
    private Integer heartRateAverage; //平均心率
    private Integer type;             //数据来源 1:手机,2:手表
    private Long runRecordId;      //跑步记录Id

    public RunRecordSimple() {
    }

    public RunRecordSimple(RunRecord runRecord) {
        startTime = runRecord.getStartTime();
        distance = runRecord.getDistanceTotal();
        calorie = runRecord.getCalorie();
        speedAverage = runRecord.getSpeedAverage();
        timeTotal = runRecord.getTimeTotal();
        heartRateAverage = runRecord.getHeartRateAverage();
        type = runRecord.getDataSource();
        runRecordId = runRecord.getId();
    }

    public Long getRunRecordId() {
        return runRecordId;
    }

    public void setRunRecordId(Long runRecordId) {
        this.runRecordId = runRecordId;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Integer getDistance() {
        return distance;
    }

    public void setDistance(Integer distance) {
        this.distance = distance;
    }

    public Integer getCalorie() {
        return calorie;
    }

    public void setCalorie(Integer calorie) {
        this.calorie = calorie;
    }

    public Integer getSpeedAverage() {
        return speedAverage;
    }

    public void setSpeedAverage(Integer speedAverage) {
        this.speedAverage = speedAverage;
    }

    public Integer getTimeTotal() {
        return timeTotal;
    }

    public void setTimeTotal(Integer timeTotal) {
        this.timeTotal = timeTotal;
    }

    public Integer getHeartRateAverage() {
        return heartRateAverage;
    }

    public void setHeartRateAverage(Integer heartRateAverage) {
        this.heartRateAverage = heartRateAverage;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
